using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LinePoint : MonoBehaviour
{
    public Transform tf0;
    public Transform tf1;

    public void CreateTf0()
    {
        if (tf0 == null)
        {
            tf0 = GameObject.CreatePrimitive(PrimitiveType.Sphere).transform;
            tf0.transform.SetParent(transform);
            tf0.localPosition = new Vector3(-1, 0, 1);
            tf0.gameObject.name = "0";
        }
    }
    public void CreateTf1()
    {
        if (tf1 == null)
        {
            tf1 = GameObject.CreatePrimitive(PrimitiveType.Sphere).transform;
            tf1.transform.SetParent(transform);
            tf1.localPosition = new Vector3(1, 0, 1);
            tf1.gameObject.name = "1";
        }
    }
}
